<?php

use yii\db\Migration;
use yii\db\Schema;

class m170525_023446_add_column_orderroom_productId extends Migration
{
    public function up()
    {

         $this->addColumn('{{order_room}}', 'product_id', Schema::TYPE_INTEGER. "(11)  DEFAULT  null  COMMENT '对应航线编号' ");
    }

    public function down()
    {
        echo "m170525_023446_add_column_orderroom_productId cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
